<template>
  <div class="form-container">
    <h2>Enter your information</h2>
    <label for="name">Name:</label>
    <input type="text" id="name" v-model="namesarr.names" />

    <label for="age">Age:</label>
    <input type="number" id="age" v-model="namesarr.ages" />

    <p>Your name is __{{ namesarr.names }}__ and you are __{{ namesarr.ages }}__ years old.</p>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'

const namesarr = reactive({
  names: '',
  ages: ''
})
</script>

<style lang="scss" scoped>
.form-container {
  margin: 20px;
}

input {
  display: block;
  margin: 10px 0;
  padding: 5px;
}

label {
  font-weight: bold;
}

p {
  margin-top: 20px;
  font-size: 1.2em;
}
</style>
